package com.xnew.bean.common;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 字典实体类
 * @author yangcd
 * @Date 2021/1/7
 * */
public class DictionaryInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    //字典编号
    private String id;
    //字典名称
    private String name;
    //字典值
    private String code;
    //字典描述
    private String type;
    //字典排序
    private int orderNum;
    //父节点ID
    private String parentId;
    //创建人
    private String createUser;
    //创建时间
    private Date createTime;
    //级别
    private String level;

    private boolean status;
    //递归思想，这个属性将作为子级目录
    private List<DictionaryInfo> children;



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setTypeCode(String type) {
        this.type = type;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public List<DictionaryInfo> getChildren() {
        return children;
    }

    public void setChildren(List<DictionaryInfo> children) {
        this.children = children;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
}
